From 9bbd3da81ee2c9bbef6015c88d094f88cf30422e Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 5 Dec 2006 02:44:53 +0000 Subject: [PATCH] add cute barchart --- maintenance/getLagTimes.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/maintenance/getLagTimes.php b/maintenance/getLagTimes.php index 827bc49e1f..f2c06f6a7a 100644 --- a/maintenance/getLagTimes.php +++ b/maintenance/getLagTimes.php @@ -15,7 +15,8 @@ if( empty( $wgDBservers ) ) { } else { $ip = gethostbyname( $host ); } - printf( "%10s %20s %3d\n", $ip, $host, $lag ); + $stars = str_repeat( '*', intval( $lag ) ); + printf( "%10s %20s %3d %s\n", $ip, $host, $lag, $stars ); } } -- 2.20.1